/*
 * @Author: zhouxiaofan
 * @Date: 2021-11-20 20:45:55
 * @LastEditTime: 2021-11-20 22:17:55
 * @LastEditors: Please set LastEditors
 * @Description: 用户评论接口
 * @FilePath: /blogServe/src/router/comment.router.js
 */

const Router = require('koa-router');

const {
  verifyAuth
} = require('../middleware/auth.middleware');

const {
  create,
  reply
} = require('../controller/comment.controller.js');

const commentRouter = new Router({prefix: '/comment'});

commentRouter.post('/', verifyAuth, create);
commentRouter.post('/:commentId/reply', verifyAuth, reply);

module.exports = commentRouter;
